Welcome friends and family. For those of you curious about my life here in Perth, Australia I created this web site. I add content from time to time as things happen, so check back often. Feel free to write me..
For those who don't know me. I'm a Californian who relocated to Perth Australia in Oct 2001. Read about why..
Showing posts with label Technical. Show all posts
Showing posts with label Technical. Show all posts
Wednesday, September 13, 2006
Major update to Recommend Software List
I've made a lot of changes to my Recommened Software for Windows List. I've added some new tools and utilities that have come to my attention in the last year.
Friday, December 09, 2005
Free PC virus scans
My ISP sent me a list of some free online based virus scanners for your PC. For those who can't afford a subscription to Norton Anti-Virus, or other decent malware protection programs.
On my list of recommended free Windows software, I have AVG as an acceptable and free anti-virus program. I want to add the following services to that list.
On my list of recommended free Windows software, I have AVG as an acceptable and free anti-virus program. I want to add the following services to that list.
- Symantec Security Check [These guys make Norton Anti-virus!!!]
- BitDefender [Can only use with MS Internet Explorer because of ActiveX]
- Trend Micro Housecall
- Panda Software Activescan
Friday, October 14, 2005
Books on MP3...
I've always found that listening to books-on-tape to be a useful way to pass the time when on long drives, or when stuck in traffic. Normally, I used to borrow book-on-tape from the public library. Now, you have more options.
Project Gutenberg has 16,000 public domain titles free to download. Within their online library, they also have a large number of Audio eBooks, most of which are narrated by humans. Some are read by computer. I have not listed to the computer generated audio books, so I can't vouch for their quality.
So you can download books that you have always meant to read, but never had the time. Then either burn them to CD in CDA format (for old fashioned dumber CD players in cars), or in MP3 format (for newer smarter CD players). Apple's free iTunes software can burn the CD for you in the format you need.
If you have an Apple iPod MP3 player, then a good solution it to simply load the books to that and play that through your car's FM radio. There are some good after-market solutions that do this. I use the Griffen iTrip. There is also the newer Griffen Roadtrip which works with the new iPod Nano. Another option is to pump the audio through your car's cassete player with the Griffen SmartDeck.
Once you get your car's audio system set up to listen to MP3s on your iPod, then you can also expand your listening library to other subjects, such as education, self-help, news, etc.
Podcast - A directory of Podcasts on the net.
LibriVox - Free public domain books in audio format for download.
NPR Podcasts - A list of National Public Radio's Podcast Files from their shows.
Podcasting News Directory - A directory of podcasts by subject.
Podiobooks - Serials in Podcast form.
Project Gutenberg has 16,000 public domain titles free to download. Within their online library, they also have a large number of Audio eBooks, most of which are narrated by humans. Some are read by computer. I have not listed to the computer generated audio books, so I can't vouch for their quality.
So you can download books that you have always meant to read, but never had the time. Then either burn them to CD in CDA format (for old fashioned dumber CD players in cars), or in MP3 format (for newer smarter CD players). Apple's free iTunes software can burn the CD for you in the format you need.
If you have an Apple iPod MP3 player, then a good solution it to simply load the books to that and play that through your car's FM radio. There are some good after-market solutions that do this. I use the Griffen iTrip. There is also the newer Griffen Roadtrip which works with the new iPod Nano. Another option is to pump the audio through your car's cassete player with the Griffen SmartDeck.
Once you get your car's audio system set up to listen to MP3s on your iPod, then you can also expand your listening library to other subjects, such as education, self-help, news, etc.
Podcast - A directory of Podcasts on the net.
LibriVox - Free public domain books in audio format for download.
NPR Podcasts - A list of National Public Radio's Podcast Files from their shows.
Podcasting News Directory - A directory of podcasts by subject.
Podiobooks - Serials in Podcast form.
Wednesday, October 05, 2005
Google Maps in Blogger: Advanced Subjects
This is part of my tutorial on how to use Google Maps into Google's Blogger service. This section teaches advanced techniques and debugging tips.
Blogger's Big Gotcha!
What makes Google Maps so difficult to install into a blog from Blogger is the fact that all line feeds in a post are converted to <br /> tags. So when you insert the required Javascript into your blog posting, <br /> tags are inserted in there. That causes the Javascript interpreter to fail in the user's browser.
The solution is to make sure that there are no line feeds in any javascript in your blog post. Everything between the <script> and the </script> tags must be one long line.
Common Problems
The most common problem I have encountered are Javascript errors.
Some are introduced by a <br /> getting slipped into the logic from a linefeed. If your map is not showing up, then view the source code that is presented to your browser. Look closely at the Javascript from your post. See if there were any changes introduced from what you thought you had coded.
Another common problem is the dropping of the semi-colon after a Javascript statement. In the Embed method tutorial I document how to change map attributes by updating variables. Look closely and you will see that each variable assignment statement is terminate with a semicolon. If you accidently removed a semicolon, it will cause the javascript interpreter to fail in the user's browser.
Another problem that might bite you is switching longitude and latitude. It is easy to forget and getting them backwards. It is a good idea to know roughly what the latitude and longitude of your target so you will recognize them at a glance.
A Helpful Tool
A good text editor will help you prepare your code for Google Blogger. It will make it easy to strip out the line feeds to prevent Blogger from inserting statements. I use EditPadLite. After I write the HTML version of the post, I use the editor's find and replace to remove all of the line feeds. With one command, it converts the post to one long line of HTML.
The International Date Line:
I've discovered a problem, or bug, with Google Maps that impacts my brother's blog. The polyline showing the voyage path can not cross the International Date Line from east to west. Instead, it joins the point on the west side of the line by going east across the planet.
To get around this problem for now, I've broke the line into to parts, one on each side of the line. So there is a tiny gap across the line now. I will work on seeing if I can get a better solution to this problem.
Putting the map in the blog's info column
You don't have to put a map in a post. You can also stick it in a side column so that it always shows up. To do this, you have to take all the code you inserted into the blog post and instead insert into the appropriate place in your blog's template.
You should also reduce the map size from 400 down to 200 or so pixels, since the info column tends to be narrower.
In your blog's template, the area where the info column contents are defined is pretty easy to find.
Multiple Maps
I've created a chapter to demonstrate how to implement multiple maps into Blogger.
Internet Explorer Quirks
Internet Explorer seems to have more "problems" with the Maps-API than Firefox does. I put problems in quotes because it may not be a problem as much as a stricter interpretation of the rules. The above technique is designed to get around these limitations.
In the stuff you added to the template was a specification for VML. This is needed to support the GPolyLine object in IE. The need for this is buried in the API documention.
Blogger's Big Gotcha!
What makes Google Maps so difficult to install into a blog from Blogger is the fact that all line feeds in a post are converted to <br /> tags. So when you insert the required Javascript into your blog posting, <br /> tags are inserted in there. That causes the Javascript interpreter to fail in the user's browser.
The solution is to make sure that there are no line feeds in any javascript in your blog post. Everything between the <script> and the </script> tags must be one long line.
Common Problems
The most common problem I have encountered are Javascript errors.
Some are introduced by a <br /> getting slipped into the logic from a linefeed. If your map is not showing up, then view the source code that is presented to your browser. Look closely at the Javascript from your post. See if there were any changes introduced from what you thought you had coded.
Another common problem is the dropping of the semi-colon after a Javascript statement. In the Embed method tutorial I document how to change map attributes by updating variables. Look closely and you will see that each variable assignment statement is terminate with a semicolon. If you accidently removed a semicolon, it will cause the javascript interpreter to fail in the user's browser.
Another problem that might bite you is switching longitude and latitude. It is easy to forget and getting them backwards. It is a good idea to know roughly what the latitude and longitude of your target so you will recognize them at a glance.
A Helpful Tool
A good text editor will help you prepare your code for Google Blogger. It will make it easy to strip out the line feeds to prevent Blogger from inserting statements. I use EditPadLite. After I write the HTML version of the post, I use the editor's find and replace to remove all of the line feeds. With one command, it converts the post to one long line of HTML.
The International Date Line:
I've discovered a problem, or bug, with Google Maps that impacts my brother's blog. The polyline showing the voyage path can not cross the International Date Line from east to west. Instead, it joins the point on the west side of the line by going east across the planet.
To get around this problem for now, I've broke the line into to parts, one on each side of the line. So there is a tiny gap across the line now. I will work on seeing if I can get a better solution to this problem.
Putting the map in the blog's info column
You don't have to put a map in a post. You can also stick it in a side column so that it always shows up. To do this, you have to take all the code you inserted into the blog post and instead insert into the appropriate place in your blog's template.
You should also reduce the map size from 400 down to 200 or so pixels, since the info column tends to be narrower.
In your blog's template, the area where the info column contents are defined is pretty easy to find.
Multiple Maps
I've created a chapter to demonstrate how to implement multiple maps into Blogger.
Internet Explorer Quirks
Internet Explorer seems to have more "problems" with the Maps-API than Firefox does. I put problems in quotes because it may not be a problem as much as a stricter interpretation of the rules. The above technique is designed to get around these limitations.
In the stuff you added to the template was a specification for VML. This is needed to support the GPolyLine object in IE. The need for this is buried in the API documention.
Google Maps within Google's Blogger
Welcome to my tutorial on how to use Google Maps within your Blogger blog. There are some tricks you have to do to get it work, which I will show here.
There are two approaches you can take. Either a use a simple link to an external map. Or use the API to embed internally. It depends on what you want to do with the map that will determine which you will use.
If you simply want to offer a map of a location, and do not care to have the map itself in your blog, then use the link method.
If you want the map to show up on your blog, then use the embed method. The embed method is more difficult. A little knowledge of HTML and Javascript is helpful. It is very powerful and allows you a great amount of control over what is displayed on the map. But if you follow the instructions carefully, you should be up and running in about 30 minutes.
Let's get started!
I maintain my brother's Blogger blog for him. I've used Google's mapping service extensively to track his voyage. I use three methods on his blog site.
In the case of my brother's blog, I created an Excel spreadsheet that generates all of the code I need for all of the maps. I simply create add a row, enter the name, date, and coordinates. Then I just cut-n-paste the code it creates and drop it into the Blogger post for Google Map, and the KML file for Google Earth. It takes me about 4 minutes to add and updates the maps on his site everytime he adds a post.
Feedback
I appreciate any feedback, good or bad. I have tested these methods out in Internet Explorer 7 and Firefox 2. Please let me know if you find any problems. Thank you.
Thanks!
A hat tip to Bosco at BossBlog who taught me how to use the new My Maps service with Blogger. He has a tutorial based on my original version from 2005 to demonstrate how to do this too. But his is in Spanish.
Also, thanks to the geeks at Google Maps API Discussion Board.
Have fun!
There are two approaches you can take. Either a use a simple link to an external map. Or use the API to embed internally. It depends on what you want to do with the map that will determine which you will use.
If you simply want to offer a map of a location, and do not care to have the map itself in your blog, then use the link method.
If you want the map to show up on your blog, then use the embed method. The embed method is more difficult. A little knowledge of HTML and Javascript is helpful. It is very powerful and allows you a great amount of control over what is displayed on the map. But if you follow the instructions carefully, you should be up and running in about 30 minutes.
Let's get started!
- Chapter 1: Geocaching - Getting the coordinates of your target
- Chapter 2: Embed Method - Quick n' easy instructions on getting a map inside your blog.
- Chapter 3: Link Method - Instructions how to to link to maps from your blog.
- Chapter 4: Advanced Subjects - Tips on debugging, tools, and doing advanced things with your maps in Blogger.
- Chapter 5: Multiple Maps - How to implement more than one map in your blog.
- Chapter 6: Page Element - How to implement a small page element map.
I maintain my brother's Blogger blog for him. I've used Google's mapping service extensively to track his voyage. I use three methods on his blog site.
- I have hard-coded links on each blog post that use Google Map to show where he was when that post was written.
- I have a post that I update that uses Google Map to show not only where he is, but where he was, and a line showing the voyage. Pretty cool!
- Lastly, I use Google Earth for more fun.
In the case of my brother's blog, I created an Excel spreadsheet that generates all of the code I need for all of the maps. I simply create add a row, enter the name, date, and coordinates. Then I just cut-n-paste the code it creates and drop it into the Blogger post for Google Map, and the KML file for Google Earth. It takes me about 4 minutes to add and updates the maps on his site everytime he adds a post.
Feedback
I appreciate any feedback, good or bad. I have tested these methods out in Internet Explorer 7 and Firefox 2. Please let me know if you find any problems. Thank you.
Thanks!
A hat tip to Bosco at BossBlog who taught me how to use the new My Maps service with Blogger. He has a tutorial based on my original version from 2005 to demonstrate how to do this too. But his is in Spanish.
Also, thanks to the geeks at Google Maps API Discussion Board.
Have fun!
Google Maps in Blogger: Map as Page Element
This is part of my tutorial on how to use Google Maps into Google's Blogger service. This section teaches how to implement a "I Am Here" map widget.
First, go to my brother's blog to see an example of of this working. Look on the left column for the element "Current Location". It displays a small Google Map with one place mark of his current location, zoomed out far enough for a person to recognize the area of earth they are looking at.
The way I created this was...
Step 1 - Prep your blog for Google Maps:
Go to the chapter on how to embed a map. Perform steps 1 and 2 from there in order to prime your blog to handle Google Maps.
Step 2 - Resolve any conflicting map names:
The logic you installed into the blog template on step 1 above will create a map named 'google_map_01'. If you only intend to have this little map as a page element, you can keep that name and not make any further changes.
If you intend to later add more maps to your blog, then you need to make sure that you don't name them 'google_map_01'. You can read the chapter on how to install multiple maps in your blog. The bottom line is that each map must have a unique name, and each must be explicitly called in the "load" and "unload" routines in order to show up.
So if you already have a 'google_map_01' in your blog somewhere, then you need to give this small map a different name. In my brother's blog, I named this map "google_map_02'. In his case, I updated the page element Javascript and HTML to reflect this name. I also added google_map_02" to the load and unload routines in the blog template.
Step 3 - Add The Page Element:
Go into the blog's layout and added a page element. insert the following code into the element.
Step 4 - Update the coordinates:
You need to update the latitude and longitude of that you wish to have marked and centered on the map. You can update this easily by editing the element.
Notes:
First, go to my brother's blog to see an example of of this working. Look on the left column for the element "Current Location". It displays a small Google Map with one place mark of his current location, zoomed out far enough for a person to recognize the area of earth they are looking at.
The way I created this was...
Step 1 - Prep your blog for Google Maps:
Go to the chapter on how to embed a map. Perform steps 1 and 2 from there in order to prime your blog to handle Google Maps.
Step 2 - Resolve any conflicting map names:
The logic you installed into the blog template on step 1 above will create a map named 'google_map_01'. If you only intend to have this little map as a page element, you can keep that name and not make any further changes.
If you intend to later add more maps to your blog, then you need to make sure that you don't name them 'google_map_01'. You can read the chapter on how to install multiple maps in your blog. The bottom line is that each map must have a unique name, and each must be explicitly called in the "load" and "unload" routines in order to show up.
So if you already have a 'google_map_01' in your blog somewhere, then you need to give this small map a different name. In my brother's blog, I named this map "google_map_02'. In his case, I updated the page element Javascript and HTML to reflect this name. I also added google_map_02" to the load and unload routines in the blog template.
Step 3 - Add The Page Element:
Go into the blog's layout and added a page element. insert the following code into the element.
Step 4 - Update the coordinates:
You need to update the latitude and longitude of that you wish to have marked and centered on the map. You can update this easily by editing the element.
Notes:
- The initial zoom is set to 3, which I found to be a nice place to start since you can recognize the continent and countries at that level.
- I've set this map to type "MAP" because it is too small for a satellite image to be useful.
Google Maps in Blogger: Geocaching
This is part of my tutorial on how to use Google Maps from Google's Blogger service. It explains Geocoding. Geocoding is the art of getting the latitude and longitude of a location. You will need to use latitude and longitude coordinates in decimal format for many of the Google Map services. There are a number of techniques to do this.
Use Google Maps
You can have Google Maps return to you the latitude and longitude of any location on earth. Simply double-click on any spot on the map. This will center the map on the location you clicked. Then click the "Link to this page" command and the URL will be updated with the "LL" argument containing the latitude and longitude of the point clicked.
For example, to find the coordinates of 101 State Street, Santa Barbara, CA, first find the spot using the traditional Google Map tools. Enter the address you want into the search box. For example. I enter "101 State Street, Santa Barbara, CA" into the search box. Google Map returns a map with a marker at the location. I click "Link to this page" and the URL is updated and contains the following:
Now I double click on the map close to, but not, the marker. The map shifts slighty to center on the point I clicked. Now I click "Link to this page" again and the URL is update to
Notice this time it has the "LL" and "SPN" arguments. These are your latitude/longitude coordinates and the scale being displayed.
Use Geocoder.us
If the address you want is in the United States, then you can use the free Geocoder.us service. You only need to enter the address and it will attempt to return the coordinates.
However, it is not perfect. I have found that it has problems getting the right location. So be sure to use another service to verify the coordinates. For example, search for the same location in Google Maps and verify that it too returns the same location.
Convert To Decimal
If you have been given coordinates in a traditional hour/minute/second format, or a GPS format, you can convert it to decimal form with this web site. It is very flexible and easy to use.
Use Google Maps
For example, to find the coordinates of 101 State Street, Santa Barbara, CA, first find the spot using the traditional Google Map tools. Enter the address you want into the search box. For example. I enter "101 State Street, Santa Barbara, CA" into the search box. Google Map returns a map with a marker at the location. I click "Link to this page" and the URL is updated and contains the following:
Now I double click on the map close to, but not, the marker. The map shifts slighty to center on the point I clicked. Now I click "Link to this page" again and the URL is update to
Notice this time it has the "LL" and "SPN" arguments. These are your latitude/longitude coordinates and the scale being displayed.
Use Geocoder.us
However, it is not perfect. I have found that it has problems getting the right location. So be sure to use another service to verify the coordinates. For example, search for the same location in Google Maps and verify that it too returns the same location.
Convert To Decimal
Google Maps in Blogger: Multiple Maps
This is part of my tutorial on how to use Google Maps into Google's Blogger service. This section teaches how to embedded multiple maps into your blog.
Step 1 - Build 1 map:
It is not difficult. First, get one map up and running in your blog, based on the the chapter for embedded maps. Then it is simply a matter of adding a little additional content.
Step 2 - Update the template:
You need to modify the startup and shutdown javascript routine to check for every map in your blog. I've named each map in my blog "google_map_xx" where xx is 01 for the first map, 02 for the second, and so on. Take a look at the startup logic for this blog.
Step 3 - Build a post with a map
Then build a blog posting that contains a map. A single post can contains multiple maps, like this one. Each post that contains 1 or maps must start with the following HTML
Then for each map, insert the following HTML into the post where you want the map to show up. Repleace each occurance of "google_map_xx" with the map number you are building, such as "google_map_02".
Step 4: That's it!
This post contains two maps. The first is a map of monterey
Here is map of London, England.
Step 1 - Build 1 map:
It is not difficult. First, get one map up and running in your blog, based on the the chapter for embedded maps. Then it is simply a matter of adding a little additional content.
Step 2 - Update the template:
You need to modify the startup and shutdown javascript routine to check for every map in your blog. I've named each map in my blog "google_map_xx" where xx is 01 for the first map, 02 for the second, and so on. Take a look at the startup logic for this blog.
Step 3 - Build a post with a map
Then build a blog posting that contains a map. A single post can contains multiple maps, like this one. Each post that contains 1 or maps must start with the following HTML
Then for each map, insert the following HTML into the post where you want the map to show up. Repleace each occurance of "google_map_xx" with the map number you are building, such as "google_map_02".
Step 4: That's it!
This post contains two maps. The first is a map of monterey
Here is map of London, England.
Google Maps in Blogger: Link Method
This is part of my tutorial on how to use Google Maps from Google's Blogger service. This is called The Link Method and is the fastest and simplest way to use Google Maps with your blog.
This method is nothing more than a custom coded link in your post to Google Maps. Arguments in the URL in the link control what is displayed on the map. The downside of this method is that the map is outside of the your blog in a different browser window.
Simple Link Method
The quickest and easiest way to get the URL you need is to simply have Google Map give it you, which it will do gladly! Here is how to do it...
Open a new browser window to http://maps.google.com. Find the map location and scale you desire. Once you are happy with what you see, click the 'Link To This Page' command. That will update the URL on the address bar of the browser with the URL needed to reproduce the image you are seeing. Then copy the URL from the address bar and use it in your blog post. Simple as that.
Then when the user viewing the blog clicks the link, they will be taken to Google Map and shown the same map that you saw. For example: Copy this URL into a browser and see what it pulls up.
It should pull up a hybrid image of Santa Barbara at a scale of 500 feet/200 meters, and with a marker at 101 State Street.
Advanced Link Method
With this method, you code the arguments in the URL to control what is displayed. There are many arguments that Google Maps can use. But we will only concentrate on a small number of critical ones that will get your started. These arguments are as follows:
?ll=latitude,longitude. In decimal format. Anything over 6 decimal places is overkill.
You can use latitude and longitude to specify the map location. This is handy for when you do not have an address, especially outside of the US. All you need to do is pass the argument "LL" with the latitude and longitude as decimal values. Example "ll=36.605451,-121.892195".
&q=address string. Instead of a lat/long, you can use an address. Each word of the address must be separated by a plus (+) sign. It also creates a marker balloon pointing to your address. Example "q=101+State+St,+Santa+Barbara,+CA"
The ll and q arguments are mutually exclusive. The q argument will be ignored if you have the ll argument.
&z=zoom. The zoom value as integer ranging from 0 to about 20. A value of 0 shows the whole earth. 20 seems to be about as close as you can zoom in. I use 15 as a good value to start with. Example "z=15".
&t=type. Controls what type of map is displayed. Value is "m" for map, "k" for satellite , or "h" for hybrid. The default is "m".
&om=0 or 1. Controls the small map in the lower right corner. 0=hide, 1=show.
The arguments can appear in any order on the URL. But I recommend that you always start with LL. The first argument is always proceeded by a "?", and all following arguments are delineated with an ampersand (&). Hence, the reason I have the arguments coded as "?ll", "&z", and so on.
Example: The following URL uses the LL argument to focus on Monterey, California at the highest zoom scale, which is 1000 feet/200 meters. Monterey is at latitude 37' 30.1" North and longitude 122' 29.0" West. A simple minute/second conversion to decimal values translate those coordinates to latitude 36.605451 and longitude -121.892195 decimal values. It is a hybrid map (t=h) with the small map in the corner closed (om=0).
Better Map Window Control
When a reader clicks on a link in your blog, their web browser is normally goes to the new page. So a simple link to Google Maps will have them leave your blog and go to the Google map page. When they are done looking at the map, they can normally hit the browser's back button to get back to where they were on your blog. Try it by clicking this link, then come back. Below is the HTML for the link.
Open maps in a separate window: You might want to consider a smoother method of showing the maps to the user. Rather than leave the blog page, it would be better to open the Google Map page in a separate browser window. This is easily done by adding the keyword "target" to the link HTML. By adding target="_new" to the tag it will instruct the browser to open the link in a new window. Try it by clicking this link. Notice that every time you click it, a new browser window is created. Here the HTML for this link.
Open all maps in a designated window: However, If you have multiple links, each with "target =_new" keyword in the tag, the each link will open a new window. This will leave the user with a lot of open windows hanging around that they will later have to manually close. A better method is to open all the maps into one designated window, separate from the blog's window. This is easily done by coding a window name into the target argument of the link tag. In this case, I've named the designated window "googlemaps".
Try it by clicking the following links: Monterey Harbor, Santa Barbara Harbor. Notice that no matter how many times you click either link, only one new browser window was created, but its content keeps changing. Here is the HTML for these links:
Bring The Map Window Into Focus:
The problem with the above technique is that when the user clicks on the link, the content of the Google Map window is updated, but the user may see or notice it. The best way to correct this is to instruct the browser to switch the focus to the map window when the user clicks on a link.
I use little javascript to make it easy. With this method, the map is opened in a different browser window, and the user focus is automatically switched to the map window. Also, every time the user clicks on the map link in your blog, they are sent to the same map window, which prevents the user from having multiple windows pop open in their computer.
To do this, put this javascript procedure in your Blogger template. Insert it right after the <head> tag near the top.
Then update your blog's template.
Next, within your blog post, code your links to Google Map with the javascript event tag "onclick" to call the above procedure that you have embedded in the template. For example:
The argument passed to the procedure Google_Map is the URL of the map you which to display. In this example, the URL asks for maps to 3 different harbors. The HREF points to a null value so the browser ignores it. Go ahead and try it
Below is the HTML for the above links:
This method is nothing more than a custom coded link in your post to Google Maps. Arguments in the URL in the link control what is displayed on the map. The downside of this method is that the map is outside of the your blog in a different browser window.
Simple Link Method
Open a new browser window to http://maps.google.com. Find the map location and scale you desire. Once you are happy with what you see, click the 'Link To This Page' command. That will update the URL on the address bar of the browser with the URL needed to reproduce the image you are seeing. Then copy the URL from the address bar and use it in your blog post. Simple as that.
Then when the user viewing the blog clicks the link, they will be taken to Google Map and shown the same map that you saw. For example: Copy this URL into a browser and see what it pulls up.
It should pull up a hybrid image of Santa Barbara at a scale of 500 feet/200 meters, and with a marker at 101 State Street.
Advanced Link Method
?ll=latitude,longitude. In decimal format. Anything over 6 decimal places is overkill.
You can use latitude and longitude to specify the map location. This is handy for when you do not have an address, especially outside of the US. All you need to do is pass the argument "LL" with the latitude and longitude as decimal values. Example "ll=36.605451,-121.892195".
&q=address string. Instead of a lat/long, you can use an address. Each word of the address must be separated by a plus (+) sign. It also creates a marker balloon pointing to your address. Example "q=101+State+St,+Santa+Barbara,+CA"
The ll and q arguments are mutually exclusive. The q argument will be ignored if you have the ll argument.
&z=zoom. The zoom value as integer ranging from 0 to about 20. A value of 0 shows the whole earth. 20 seems to be about as close as you can zoom in. I use 15 as a good value to start with. Example "z=15".
&t=type. Controls what type of map is displayed. Value is "m" for map, "k" for satellite , or "h" for hybrid. The default is "m".
&om=0 or 1. Controls the small map in the lower right corner. 0=hide, 1=show.
The arguments can appear in any order on the URL. But I recommend that you always start with LL. The first argument is always proceeded by a "?", and all following arguments are delineated with an ampersand (&). Hence, the reason I have the arguments coded as "?ll", "&z", and so on.
Example: The following URL uses the LL argument to focus on Monterey, California at the highest zoom scale, which is 1000 feet/200 meters. Monterey is at latitude 37' 30.1" North and longitude 122' 29.0" West. A simple minute/second conversion to decimal values translate those coordinates to latitude 36.605451 and longitude -121.892195 decimal values. It is a hybrid map (t=h) with the small map in the corner closed (om=0).
Better Map Window Control
Open maps in a separate window: You might want to consider a smoother method of showing the maps to the user. Rather than leave the blog page, it would be better to open the Google Map page in a separate browser window. This is easily done by adding the keyword "target" to the link HTML. By adding target="_new" to the tag it will instruct the browser to open the link in a new window. Try it by clicking this link. Notice that every time you click it, a new browser window is created. Here the HTML for this link.
Open all maps in a designated window: However, If you have multiple links, each with "target =_new" keyword in the tag, the each link will open a new window. This will leave the user with a lot of open windows hanging around that they will later have to manually close. A better method is to open all the maps into one designated window, separate from the blog's window. This is easily done by coding a window name into the target argument of the link tag. In this case, I've named the designated window "googlemaps".
Try it by clicking the following links: Monterey Harbor, Santa Barbara Harbor. Notice that no matter how many times you click either link, only one new browser window was created, but its content keeps changing. Here is the HTML for these links:
Bring The Map Window Into Focus:
The problem with the above technique is that when the user clicks on the link, the content of the Google Map window is updated, but the user may see or notice it. The best way to correct this is to instruct the browser to switch the focus to the map window when the user clicks on a link.
I use little javascript to make it easy. With this method, the map is opened in a different browser window, and the user focus is automatically switched to the map window. Also, every time the user clicks on the map link in your blog, they are sent to the same map window, which prevents the user from having multiple windows pop open in their computer.
To do this, put this javascript procedure in your Blogger template. Insert it right after the <head> tag near the top.
Then update your blog's template.
Next, within your blog post, code your links to Google Map with the javascript event tag "onclick" to call the above procedure that you have embedded in the template. For example:
The argument passed to the procedure Google_Map is the URL of the map you which to display. In this example, the URL asks for maps to 3 different harbors. The HREF points to a null value so the browser ignores it. Go ahead and try it
Below is the HTML for the above links:
Google Maps in Blogger: Embedded Maps
This is part of my tutorial on how to use Google Maps into Google's Blogger service. This section teaches The Embedded Method.
Google has now automated this so it is super easy to do now. My old instructions from 2005 are now obsolete.
Step 1 - Create a Google map
Go to Google Maps (maps.google.com) and create the map you want. Drop in the elements you want (place markers, etc). The tools Google has placed there make it really easy to use.
You don't have to make the map public.
Step 2 - Grab the HTML to imbed from Google Maps
From Google Maps:
Now we will create a blog post that contains the map. Create a new post, go into "Edit HTML" mode, and paste the code from step 2.
That is it!
Now let's tweak the map to show your content!
If you carefully examine the HTML you copy and pasted from Google Maps, you will see that it mostly consists of just two HTML commands, a <iframe> and a <a>.
Both commands have an attribute with the exact same value. The <iframe> has a "src=" attribute, and the <a> has an "href=" attribute.
The values for both attributes are the same, a URL to your customer map. The URL consists of a location "http://maps.google.com/maps/ms?" followed by a number of name/value pair arguments.
In order to further tweak the map, we will be adding to or altering the values of some of these argument name/value pairs. Make the same changes to both URL's so they are consistent.
Step 4 - Update Target Coordinates
You need to tell Google Maps where on earth it should display. Do this with the latitude and longitude of the location of what you want to look at (your target). Read the chapter on Geocaching on how to get the coordinates. They need to be in decimal format. For example, the coordinates of Monterey, California used are latitude=36.610429, longitude=-121.896143. Notice that the numbers can be positive or negative. Six decimal places of precision of plenty for Google Maps. Any more than 6 digits is overkill.
Edit the post with the map in HTML mode. In there you will see occurrences of the following Javascript statements:
The actual values are from your custom map. Replace the values with your coordinates, then publish the blog post. View the post. It should now be looking at your target.
For example: 51.502332,-0.153122 shows London, England.
Step 5 - Set Zoom Factor
You also need to tell Google Earth what zoom factor to use. This is an integer from 0 to about 20. Increase it zoom in closer. Decrease it to zoom out ('0' shows the whole earth!). I've found that a value of 14 is a good place to start.
Edit the post with the map in HTML mode. In there you will see the Javascript statement:
Replace 14 with your desired value, then publish the blog post. View the post. It should now be looking at your target at the scale you want. Keep tweaking the zoom until you get it the way you want.
Step 6 (Optional) - Change Map Type
Sets the type of map you want to display... Map, Satellite, or Hybrid. Right now it is set to Map.
Edit the post with the map in HTML mode. You will need to add a URL argument to the <iframe> source attribute.
The last argument in both the iframe and href attributes is:
You need to add another argument to the line... The "T=?" argument.
The available options are "m" map, "k" satellite, "h" hybrid, "p" terrain. Replace ? with one of the following values then publish the blog post. View the post.
The dimensions of the map are specified in the <iframe> tag. I recommend 400 x 400 pixels, which I find fits perfect in Blogger's blogs. However, if you want to change the size, then knock yourself out.
Edit the post with the map in HTML mode. In there you will see the HTML statement
Replace 400 with the width and hieght you desire. Then publish the blog post and view the post to see how it looks.
Publish the blog post. View the post. It should all be working now!
If you have some problems, click here for some advanced tutorial.
View Monterey in a larger map
Google has now automated this so it is super easy to do now. My old instructions from 2005 are now obsolete.
Step 1 - Create a Google map
Go to Google Maps (maps.google.com) and create the map you want. Drop in the elements you want (place markers, etc). The tools Google has placed there make it really easy to use.
You don't have to make the map public.
Step 2 - Grab the HTML to imbed from Google Maps
From Google Maps:
- Edit your map
- Click "Link" command (upper right side). A small dropdown panel appears under the command.
- Click "Customize and preview embedded map". A new browser windows pops open.
- For "Step 1 - Customize", choose "custom" and set both width and height to 400.
- For "Step 3 - Copy and paste this HTML to embed in your website", do that. Select the HTML it presents in the box and copy it (Windows users can press Control-C, Mac users can press Command-C).
Now we will create a blog post that contains the map. Create a new post, go into "Edit HTML" mode, and paste the code from step 2.
That is it!
Now let's tweak the map to show your content!
If you carefully examine the HTML you copy and pasted from Google Maps, you will see that it mostly consists of just two HTML commands, a <iframe> and a <a>.
Both commands have an attribute with the exact same value. The <iframe> has a "src=" attribute, and the <a> has an "href=" attribute.
The values for both attributes are the same, a URL to your customer map. The URL consists of a location "http://maps.google.com/maps/ms?" followed by a number of name/value pair arguments.
In order to further tweak the map, we will be adding to or altering the values of some of these argument name/value pairs. Make the same changes to both URL's so they are consistent.
Step 4 - Update Target Coordinates
You need to tell Google Maps where on earth it should display. Do this with the latitude and longitude of the location of what you want to look at (your target). Read the chapter on Geocaching on how to get the coordinates. They need to be in decimal format. For example, the coordinates of Monterey, California used are latitude=36.610429, longitude=-121.896143. Notice that the numbers can be positive or negative. Six decimal places of precision of plenty for Google Maps. Any more than 6 digits is overkill.
Edit the post with the map in HTML mode. In there you will see occurrences of the following Javascript statements:
The actual values are from your custom map. Replace the values with your coordinates, then publish the blog post. View the post. It should now be looking at your target.
For example: 51.502332,-0.153122 shows London, England.
Step 5 - Set Zoom Factor
You also need to tell Google Earth what zoom factor to use. This is an integer from 0 to about 20. Increase it zoom in closer. Decrease it to zoom out ('0' shows the whole earth!). I've found that a value of 14 is a good place to start.
Edit the post with the map in HTML mode. In there you will see the Javascript statement:
Replace 14 with your desired value, then publish the blog post. View the post. It should now be looking at your target at the scale you want. Keep tweaking the zoom until you get it the way you want.
Step 6 (Optional) - Change Map Type
Sets the type of map you want to display... Map, Satellite, or Hybrid. Right now it is set to Map.
Edit the post with the map in HTML mode. You will need to add a URL argument to the <iframe> source attribute.
The last argument in both the iframe and href attributes is:
You need to add another argument to the line... The "T=?" argument.
The available options are "m" map, "k" satellite, "h" hybrid, "p" terrain. Replace ? with one of the following values then publish the blog post. View the post.
- For a map image use m
- For a satellite image use k
- For a hybrid image use h
- For a terrain image use p
The dimensions of the map are specified in the <iframe> tag. I recommend 400 x 400 pixels, which I find fits perfect in Blogger's blogs. However, if you want to change the size, then knock yourself out.
Edit the post with the map in HTML mode. In there you will see the HTML statement
Replace 400 with the width and hieght you desire. Then publish the blog post and view the post to see how it looks.
Publish the blog post. View the post. It should all be working now!
If you have some problems, click here for some advanced tutorial.
View Monterey in a larger map
Labels:
Technical
Saturday, July 16, 2005
Passport Authentication Online
One of the tasks of the immigration officers is to determine the validity of each incoming passenger's passport and visa. On the program they have often pull suspicious passengers aside for further investigation. Something about the passenger’s documents, story, or behavior has tipped off the officer that something isn't right. Usually, the passenger is trying to get into Australia illegally with forged documents.
When the officer suspects that the passport is fake, they have a forgery export examine it under a microscope. The officer will also call an officer at the passenger’s consulate to verify the information. If there is no consulate, or it is off hours, the officers has to guess.
The techie side of me found this to be unacceptable. I find it amazing that here in 2005, with the Internet available to most anywhere on the planet, that a simple passport verification system has not been implemented.
How hard is it for a nation’s passport department to put the data from their passport files on a web server? Not hard at all. How hard is it for these same nations to put these servers on a private intranet, or VPN on the Internet? Again, not hard at all. They should be able to do the whole thing in a week.
Then all the Australian immigration officer has to do is log on to the passport holder’s national passport database website and enter the passport number. The web server will return a web page with the same information that should be on the passport the officer is holding.
Simple as that!
To make things ever more efficient, the airlines could forward a list of passports to the destination’s immigration department. They could pre-pull the records of the passengers and make decisions while the passengers are still in the air. They will have hours to review the list, compare them against warrants and other watch lists, and do their job right instead of making snap decisions after the passenger arrives.
Other Benefits:
- If someone arrives with a fake or altered passport, it will not match the information of the passport issuer's database. This will kill the fake passport market since the passport can be authenticated by the issuer, 24 hours a day, 7 days a week, anywhere on the planet, within seconds.
- If you loose your passport while travelling, it will make it much easier to have a host nation issues a tempory passport based on the data provided. Just like American Express issues temporary replacement credit cards on the spot. They then issue a real replacement that arrives at your home address a couple of weeks later.
- The system can also be used by immigration services to analyze visa requests before travelling. This can eliminate the process of having to mail your passport off to an embassy and hope you get it back. The request should be able to be processed online.
How about this idea? If the server uses XML instead of HTML, the data served by the issuer's server can be easily digitally processed by the client nation. This data can then be easily be forwarded as searches against other databases that would effect the decisions of the immigration department.
Tuesday, June 28, 2005
MS Word Radio Butttons
This post is technical. It provides a way to implement radio-button style check boxes in a Microsoft Word document. This is something that Microsoft seems to have overlooked.
How to Create Mutually Exclusive Check Boxes by Using a Macro
Background: A friend of mine was using MS Word to produce a survey for her office. She wanted to allow the user to open the document and select one 6 ratings for a survey by selecting a check box. She found out that there was no way in Word to have the other check boxes turn "off" when one was turned on. She called me for help. I wrote her this small VB solution. It is very flexible and can be used by anyone.
Microsoft offers a solution to this problem on their website. But it is really lame because it requires the user to update the program every time they add, change, or remove a check box. I figured I could do better and make one that would never need to be changed. Mine is smart enough to figure out how to group checkboxes without the user having to learn how to program.
Then insert the check box form fields into the Word document. You will find them on the "Control Toolbox" toolbar.
Right click the check box and pull up properties.
How to Create Mutually Exclusive Check Boxes by Using a Macro
Background: A friend of mine was using MS Word to produce a survey for her office. She wanted to allow the user to open the document and select one 6 ratings for a survey by selecting a check box. She found out that there was no way in Word to have the other check boxes turn "off" when one was turned on. She called me for help. I wrote her this small VB solution. It is very flexible and can be used by anyone.
Microsoft offers a solution to this problem on their website. But it is really lame because it requires the user to update the program every time they add, change, or remove a check box. I figured I could do better and make one that would never need to be changed. Mine is smart enough to figure out how to group checkboxes without the user having to learn how to program.
- In your Word document, go to Tools > Macro > Visual Basic Editor. This will launch the MS Visual Based editor.
- In the Project Explorer Window you will see your project with a folder named "Microsoft Word Objects".
- In that folder you will see "ThisDocument". Double click on that to open up the code window.
- Then insert the follow code.
Then insert the check box form fields into the Word document. You will find them on the "Control Toolbox" toolbar.
Right click the check box and pull up properties.
- Set the default value to "Not Checked"
- Set Run Macro On Entry to "Radio_Check_Box"
- Set Bookmark to whatever name you want, such as "grp01_a".
Wednesday, June 08, 2005
Windows PC - Free Software List
Updated 15-July-2007
Since I seem to have always been the family IT geek who is pimped out to relatives and pumped for help, I've decided to post a list of free software that I feel any Windows machine should have.
Make sure that Windows has all the latest fixes installed. Run Windows Update from Internet Explorer, under the Tools menu.
Also make sure that there is enough memory. If there is less than 512MB, then install more. Otherwise, the machine will run like shit.
Install Anti-Virus and Spyware removal software first. Make sure there are no viruses or spies installed.
Security > Anti Virus:
- AVG Free Edition[GriSoft] - Anti-virus
- Avira AntiVir Personal Edition Classic[Avira] - Anti-virus
- Avast! 4 Home Edition[ALWIL] - Anti-virus
- Symantec Security Check[Norton] - These guys make Norton Anti-virus!!!
- BitDefender[] - Can only use with MS Internet Explorer because of ActiveX
- Trend Micro Housecall[Trend Micro]
- Panda Software Activescan[Panda Software]
- Ad-Aware SE[Lavasoft] - Spyware detection and removal
- SpyWare Blaster[JavaCool] - Prevent installation of spyware programs
Windows often comes with services enabled that are not needed and leave it vulnerable to attack. So it is a good idea to disable unneeded services, or to modify the default options.
- DCOMbobulator [GRC] - Disable Windows DCOM service
- UnPlug n’ Pray [GRC] - Disable Windows PnP service
- Shoot The Messenger [GRC] - Disable Windows Messenger service
- Zone Alarm [ZoneLabs] - Firewall
- Leaktest [GRC] - Make sure that your firewall is working from the inside!
- Shields Up! [GRC] - Test your firewall from outside.
- Hosts File [MVPS] - A replacement 'HOSTS' file for you Windows that will stop most parasite software and pop ups from getting going. Simple, free, and highly effective!
- Google Toolbar for IE [Google] - Popup suppression for Internet Explorer
- 4U Only [Dillobits] - Password Manager
- TrueCrypt [TrueCrypt] - The best encryption tool out there. An absolute must of you have a USB flash drive!
- Perfect Passwords [GRC] - Excellent source for perfect passwords. Especially handy for creating passwords for encryption (see TrueCrypt).
- OpenDNS [] - Smarter and safer DNS service to help prevent you from becoming a phish scame victim.
- VLC [Video LAN] - Video player Notes: Will play pretty much all video and audio formats on the planet.
- Windows Media Player [Microsoft] - Audio and video player Notes: MS’s media player. Does OK. Version 9 is the highest that will run on Win98
- QuickTime [Apple] - Video player
- Shockwave Player [Macromedia] -Play Shockwave Audio Streams
- iTunes [Apple] - The best player.. comes bundled with Quicktime. Also works as an excellent ID3 tag editor.
- Audio Grabber [] - Best Ripper out there when coupled with LAME MP3
- LAME MP3 [] - The best codec for encoding MP3 files from your CD collection. You need to install the LAME binary image on your computer, then configure Audio Grabber to use it.
- Media Monkey Standard [Ventis Media] - Rip Audio CD's to MP3. Does a pretty good job and is it little easier to use and Audio Grabber and LAME.
- Audacity [] - A free audio editor. Handy for editing MP3 files to get rid of ads, junk, etc.
- FastStone Image Viewer[FastStone] - Image Browser
- FastStone Screen Capture[FastStone] - Save screen shots
- FastStone Max View[FastStone] - Fast Image Viewer
- FastStone Max View[FastStone] - Batch Photo Resizer
- Picasa2 [Google] - Photo album management
- Fotki [Fotki] - Internet photo album sharing - better than Flikr!
- Paint.net [Washington State Univ.] - Bit Mapped Drawing Program Note: Works on Win2K or WinXP only.
- Gimp [GNU] - Photo Editor (Like Adobe Photoshop)
- Alibre Design Express [Alibre] - 3D Solid Modeling CAD software.
- Inkscape [] - Vector Drawing Program (Like Illustrator, Freehand, CorelDraw, or Xara X).
- Firefox [Mozilla Foundation] - Web Browser Note: After FF is installed, there are a number of plugins, themes, and extensions that can be installed to increase the functionality of FF. The plugins needed are all listed on this sheet. They are Acrobat Reader, Flash Player, Java, Quicktime, Real Player, Shockwave, and Windows Media Player.
- Google Toobar for Firefox [Google] - A better Google search tool bar. Get rid of the search box that comes with Firefox and use this instead.
- Flash Player [Macromedia] - Play Flash animations
Internet Applications > Email
- GMail [Google] - Web based email client.
- Thunderbird [Mozilla Foundation] - Email client
- Google Reader[Google] - Web based RSS Aggregator. Easy to use and very handy. The best way to keep up with your favorite blogs and news sources.
- BitTorrent [BitTorrent Inc] - Internet File Sharing
- Skype [eBay] - The universal way to make free phone calls world wide. Be sure to configure your profile for privacy. Otherwise lot of bored Chinese teenagers will call you to practice their English.
- Ultimate ZIP 2.7 [Ultimate ZIP] - Manage compressed files. Get 2.7, the sponsored version.
- Rename-It! [Werner BEROUX] - Batch filename manipulator
- Edit Pad Lite [JG Soft] - Text Editor. Much better than Notepad!
- Acrobat Reader [Adobe] - The official PDF reader... slow and fat.
- PDFcreator [SourceForge] - Ad Free open-source PDF creator.
- PDF995 [] - Create your own PDF files.
- PDF SpeedUp [] - Use this with Adobe's reader to make it run much faster!
- FoxIt Reader []
- PDF Action Reader []
- Brava Reader []
- eXPert PDF Reader []
- PDF Action Reader []
- JRE (Java Runtime Environment) [Sun] - Run Java applications and applets
- DirectX 9.0 [Microsoft] - Graphics enhancement
- SyncBack Freeware [Bright Sparks] - PC Backup/restore utility.
- WinDirStat [SourceForge] - Windows Directory Statistics. - An easy graphical way to see where all your disk space is being used. Very handy for finding wasteful downloads you forgot about.
- Atomic Clock Sync [Chaos Software] - For Win98 - Keep your PC's clock in sync. Note: WinXP has a sync feature built into the clock. You just need to config & enable it.
- CC Cleaner [CC Cleaner] - Remove unneeded files from Windows system.
- Power Toys for Windows XP [Microsoft] - Clever little enhancements to Windows from the brains at Microsoft. These are things that should have been put in the official release, but were not.
- Startup Mechanic [OpenSoft] - Speed up tool - analysis of start up procedures.
- Ultimate Boot CD [Source Forge] - Utility to boot PC and fix things when all else fails.
- RegClean [Microsoft] - Speed up Windows by stripping junk from registry.
- TweakNow RegCleaner Standard [Tweak Now!] - Speed up Windows by stripping junk from registry.
- BelArc Advisor [Belarc] - Create a detailed report of your PC's configuration. Very handy report to give to tech support so they can see what you have on your machine.
- SysInternals Utilities [Microsoft] - Advanced and free untilties for advanced users to manage the operating system. Not for amatures!
- Hamachi VPN [GoToMyPc] - The best and easiest VPN system out there! As Steve Gibson says, "Hamachi Rocks!"
- Tight VNC [Tight VNC Software] - Virtual Network Computing Server. Allows remote access and control of PC from another computer on the internet. Note: Install the client on the controlling PC. Install the server on the controlled machine.
- No-IP Free Dynamic DNS Service [No-IP.com] - Static domain name for leased IP addresses. Note: Used to find a computer on the Internet.
- No-IP Dynamic DNS Client [No-IP.com] - Needed for VNC clients to easily find the VNC server. Note: Install this client on the machine you want to access. The same one with the VNC server.
- Be sure to configure these programs to not run automatically!!! They should only be manually started when needed to allow a trusted guest to gain access to your PC.
- Network Stumbler [Net Stumbler] - WiFi (802.11a/b) Network Finder
- Google Docs & Spreadsheet[Google] - Online only Word processor & spreadsheet. Quick and easy.(Compatible with MS Word & MS Excel).
- Open Office [Sun] - Word processor, spreadsheet, presentation manager, and drawing program (Compatible with MS Office).
- Palm Desktop [Palm] - Solid PIM (contacts, appointments, notes) replacement for Microsoft's Outlook.
- Google Earth [Google] - I can't say enough about this most amazing program. Wow!
- FreeMind [SourceForge] - An excellent Mind Mapping application. Very easy to use and handy for planning and organizing complex subjects.
- Arcade! Classic Arcade Pack [Neave] - Classic games Asteroids, Packman, Pong, Snake, Space Invaders, & Tetris.
- Su Doku [Microride] - Addicting numeric 'crossword' puzzle Use this to make new games, or to solve those in the newspaper.
Some products are worth every dollar they charge. I would not hesitate for a minute to buy these. I've added this list to the bottom of the page since this page is dedicated to free software for home Windows users.
- MS Office Suite [Microsoft] - Word for word processing, and Excel for a spreadsheet. You don't need to go buy the lastest version. Office Suite versons 2000, 2003, or XP, though no longer supported, are excellent products and can be bought on eBay for not very much money.
- SpinRite [GRC] - The best insurance against hard drive failures and problems. Cheap at twice the price.
Subscribe to:
Posts (Atom)